package com.hollycrm.unicom.usersupport;

import java.io.Serializable;
import java.util.List;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2004</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class User implements Serializable {

    protected String userID;
    protected String userCode;
    protected String userName;
    protected String vestAreaID;
    protected String password;
    protected String mobilePhone;
    protected String email;

    protected List/*Skill*/ skills;
    protected List/*Right*/ rights;
    protected List/*Role*/ roles;
    protected List/*Department*/ depts;

    public Department getDepartment() {
        return (depts != null && !depts.isEmpty()) ?
            (Department) depts.get(0) : null;
    }

    public String getUserID() {
        return userID;
    }
    public void setUserID(String userID) {
        this.userID = userID;
    }
    public String getUserCode() {
        return userCode;
    }
    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }
    public String getVestAreaID() {
        return vestAreaID;
    }
    public void setVestAreaID(String vestAreaID) {
        this.vestAreaID = vestAreaID;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getMobilePhone() {
        return mobilePhone;
    }
    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }
    public String getEmail() {
        return email;
    }
    public void setEmail(String email) {
        this.email = email;
    }
    public List getSkills() {
        return skills;
    }
    public void setSkills(List skills) {
        this.skills = skills;
    }
    public List getRights() {
        return rights;
    }
    public void setRights(List rights) {
        this.rights = rights;
    }
    public List getDepts() {
        return depts;
    }
    public void setDepts(List depts) {
        this.depts = depts;
    }
    public List getRoles() {
        return roles;
    }
    public void setRoles(List roles) {
        this.roles = roles;
    }

}
